package com.hzqy.persistence.dao.statistics;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.AwardUserVo;
import com.hzqy.web.vo.PmsUserVo;
import com.hzqy.web.vo.travel.TravelUserVo;

@Repository
public class TravelDao extends PersistenceDao<PmsUserVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(TravelDao.class);
	
	public int selectTravelUserCount(TravelUserVo travelUserVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectTravelUserCount", travelUserVo);
	}
	
	public List<TravelUserVo> selectTravelUserList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectTravelUserList", map);
	}
	
	public int selectExcelCount(TravelUserVo travelUserVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectExcelContentCount", travelUserVo);
	}
	
	public List<TravelUserVo> selectExcelList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectExcelList", map);
	}
}
